package com.atcper

import jdk.internal.vm.annotation.ReservedStackAccess

object Scala02_String {
  def main(args: Array[String]): Unit = {
    var name: String = "ranzili"
    var age: Int = 22
    //    println(name + age)

    //    printf("name=%s, age=%d\n", name, age)
    //    printf("name=%s age=%d\n", name, age)

    println(s"name=${name}")

    val s: String =
      """
        | hello
        | scala
        |""".stripMargin
    println(s)

    println(
      s"""
         |{"name":${name}, "age:${age}"}
         |""".stripMargin)
  }
}
